<?php
/**
 +------------------------------------------------------------------------------
 * 首页
 +------------------------------------------------------------------------------
 * @Version 2.2
 * @Author  WangXian
 * @FileName indexController.php
 * @Creation date 2010-9-10
 * @Modified date 2010-10-11
 +------------------------------------------------------------------------------
 */
class indexController
{
	public function indexAction()
	{
		header('Content-type: text/xml');
		
		$data = array('author1'=>array('name'=>'wangxian1'), 'author2'=>array('name'=>'wangxian2'));
		echo xml_encode($data);
	}
	
	/** 测试解析indexAction生成的xml。 **/
	function testAction()
	{
		dump( simplexml_load_file('http://127.0.0.1/svn/'.U('index/index') ) );
	}

}